package cn.edu.zhku.citrusmonitor.law.dao;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.Bean;
import cn.edu.zhku.citrusmonitor.domain.Law;

public interface LawDao {

	public void addLawByBean(Law law) throws SQLException;

	public List<Law> getLawByTittle(String tittle) throws SQLException;

	public long getCounts() throws SQLException;

	public List<Law> getList(int currentPage, int pageSize) throws SQLException;

	public Law getLawById(String id) throws SQLException;

	public void updateLaw(Law law) throws SQLException;

	public List<Law> getList(String pageSize) throws SQLException;

	public List<Bean> getWebList(int currentPage, int pageSize) throws SQLException;

	public Long getWebCounts() throws SQLException;

	public int delete(String id) throws SQLException;

	public Bean selectDetail(String id) throws SQLException;

	public int[] removeAllById(String[] ids) throws SQLException;

}
